using BusinessBingo.Model;

namespace BusinessBingo.Web.Infrastructure.InfoStores.Interfaces
{
    /// <summary>
    /// Interface for setting and getting the current UI language
    /// </summary>
    public interface ICurrentLanguageStore
    {
        /// <summary>
        /// Returns the preferred language based on the given browserlanguages
        /// </summary>
        /// <returns>Returns the preferred UI language.</returns>
        LanguageKey GetPreferredLanguage();

        /// <summary>
        /// Set the preferred UI language to a specific language
        /// </summary>
        /// <param name="key">The specific language.</param>
        void SetPreferredLanguage(LanguageKey key);
    }
}